{% extends "templates/public/base.html" %}
{% block title %}{{PageTitle}}{% endblock %}
{% block head %}
    {{ super() }}
    <style type="text/css">
        .important { color: #336699; }
    </style>
{% endblock %}
{% block content %}

	<div class="singleimg">
		<img src="{{item.pic_url}}" alt="{{item.nick}}" class="productImage img-rounded">
		<div class="detail">
			<p><a href="{{item.click_url}}_b.jpg" class="title">{{item.title}}</a></p>
			<p>
				<a href="{{item.click_url}}" class="btn-red"><span>￥{{item.price}}&nbsp;&nbsp;&nbsp;</span>去看看 ></a>
			</p>
			<p class="detaillist">
				<span>上架时间：</span>{{itemdetails.listtime}}
			</p>
			<p class="detaillist">
			<span>已成交：</span>{{item.volume}} + 笔
			</p>
			<p class="detaillist">
				<span>掌柜：</span>
				<a href="{{item.shop_url}}">{{item.nick}}</a>
			</p>
			<p class="detaillist">
    			<span>收藏:</span><em id="count">{{item.wish_count}}次</em>
			</p>
			
			<p>
				<a href="javascritpt:;" class="btn-red lovedetail"  mid={{item.key().id()}} cate="{{cate}}" ><span>添加到我的收藏</span></a>
			</p>
			
			<p class="detaillist">
			<span>
			<wb:share-button type="button" size="big" count="n" url="{{item.click_url}}" appkey="3209255093" title="{{item.title}}" pic="{{item.pic_url}}" id="sina-share"></wb:share-button>
			</span>
			<a href="http://share.v.t.qq.com/index.php?c=share&a=index&title=若比翼 - 专为情侣提供导购服务&pic={{item.pic_url}}&url=http://www.ruobiyi.com/detail.php%3Ffor={{cate}}%26id={{item.key().id()}}&appkey=801284272&line1={{item.nick}}&line3=已销售 {{item.volume}} 件&line2=" target="_blank" class="tmblog" id="share_btn_qq" style="font-size:18px;"> <img src="http://mat1.gtimg.com/app/opent/images/websites/share/weiboicon32.png" border="0" alt="" valign="middle" ></a>
			</p>
		</div>
	</div>
	<div id="comments">
		<wb:comments url="auto" border="y" brandline="y" fontsize="14" width="auto" appkey="3209255093" ></wb:comments>
	</div>
	<div class="relates">
		<ul>
			{% for item in relateItems %}
				<li>
					<a href="./detail.php?for={{cate}}&id={{item.key().id()}}"><img src="{{item.pic_url}}_b.jpg" alt="{{item.nick}}" class=" img-rounded"/></a>
				</li>
    		{% endfor %}
		</ul>
	</div>
	<div>
	</div>

{% endblock %}
{% block script %}
var href =$("#share_btn_qq").attr("href")+ $(".title").text();
$("#sina-share").attr("title",$(".title").text())
$("#share_btn_qq").attr("href",href);
{% endblock %}